What is give her attention then take it away?

Giving attention and then taking it away is a behavioral psychology technique known as intermittent reinforcement. It involves rewarding or acknowledging a behavior intermittently or unpredictably, rather than consistently. This technique can be effective in reinforcing certain behaviors, as it creates a sense of curiosity or unpredictability in the individual and encourages them to continue engaging in that behavior in hopes of receiving attention again. However, it can also backfire and lead to frustration or resentment in the individual if they feel they are not receiving enough attention or that the attention is not consistent enough. It is important to use this technique in moderation and in conjunction with other positive reinforcement techniques to avoid negative outcomes.